
package za.ac.cput.peterjohn.DesignPatternPrincipals.Behavioral.Interpreter.Model;

import java.util.Map;

public class DivideExpression implements Expression 
{
    Expression left;
    Expression right;

    public DivideExpression(Expression left, Expression right) 
    {
        this.left = left;
        this.right = right;
    }
    
    @Override
    public int interpret(Map<String, Expression> varibles) { return left.interpret(varibles) / right.interpret(varibles); }
    
}